]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dateMenu: Make sure that the event list fills the available width
authorAdel Gadllah <adel.gadllah@gmail.com>
Wed, 23 Feb 2011 13:34:37 +0000 (14:34 +0100)
committerAdel Gadllah <adel.gadllah@gmail.com>
Wed, 23 Feb 2011 13:56:26 +0000 (14:56 +0100)
Currently the menu has a hardcoded width which result into the hover
effect of the "Open Calendar" item being "cut off" in the middle rather
then reaching to the edge.

To be consistent with other menu items, make it expand to fill the available
space.

js/ui/dateMenu.js

index 9f6fb27d79bb5fbf2f9d37e38d0370cb7bfee87b..1f193aa7c4489b711162f65bebda97624089a160 100644 (file)
@@ -104,10 +104,10 @@ DateMenuButton.prototype = {
         // Fill up the second column
 
         vbox = new St.BoxLayout({vertical: true});
-        hbox.add(vbox);
+        hbox.add(vbox, { expand: true });
 
         // Event list
-        vbox.add(this._eventList.actor);
+        vbox.add(this._eventList.actor, { expand: true });
 
         item = new PopupMenu.PopupMenuItem(_("Open Calendar"));
         item.connect('activate', Lang.bind(this, this._onOpenCalendarActivate));